<?php

require_once("DAO.php");

class DoodleDAO extends DAO
{
	private $conn;
	private $databaseSelected;
	
	function __construct()
	{
	}

	function findAll()
	{
		$doodles = array();
		for($i=1;$i<=100;$i++)
		{
			$doodles[]= new Doodle($i, "doodle name ".$i, "description ".$i, "url ".$i, $i*99);
		}
        return $doodles;
	}
	function findRandom()
	{
		return new Doodle(1, "doodle name PUDDING", "fabulous pudding description", "http://Pudding/", 1);
	}
	function findById($id)
	{
		return new Doodle($id, "doodle name PUDDING".$id, "fabulous pudding description".$id,  "http://Pudding/".$id, 1);
	}
}
?>